package standino.velocity.db.db2;

import java.util.ArrayList;
import java.util.List;

public class SP extends DB2Object {


  private List<Parameter> inParam=new ArrayList<Parameter>();
  private List<Parameter> outParam=new ArrayList<Parameter>();
  private List<String> refTableNames= new ArrayList<String>();

  int set =0;

  public SP(String schema, String name){
	  this.setSchema(schema);
	  this.setName(name);
  }
  public SP(String full){
	  this.setFullName(full);
  }
  public List getInParam(){
	  return inParam;

  }

  public void addInParam(Parameter pa){
	  this.inParam.add(pa);
  }

  public void addOutParam(Parameter pa){
	  this.outParam.add(pa);
  }

  public int getSetSize(){
	  return this.set;
  }

  public void setSetSize(int s){
	  this.set =s;
  }

  public void addRefTableName(String name){
	  this.refTableNames.add(name);
  }

  public String getFistRefTableName(){
	if(this.refTableNames.size()==0){
		return "UNDEFINE";
	}else{
		return this.getRefTableNames().get(0);
	}
  }

  public List<String> getRefTableNames(){
	  return this.refTableNames;
  }



}
